/**
 * Copyright phonemap.com
 *
 * Licensed under the phonemap.com License, Version 1.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.phonemap.com/licenses/LICENSE-1.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.avatar.entity;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 * The Class EventType.
 * 
 * @author Uy Phu
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class EventType {

	/** The event type id. */
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long eventTypeId;

	/** The name. */
	@Persistent
	private String name;

	/** The order. */
	@Persistent
	private int order;

	/**
	 * Instantiates a new event type.
	 */
	public EventType() {

	}

	/**
	 * Instantiates a new event type.
	 * 
	 * @param eventTypeId
	 *            the event type id
	 * @param name
	 *            the name
	 * @param order
	 *            the order
	 */
	public EventType(Long eventTypeId, String name, int order) {
		super();
		this.eventTypeId = eventTypeId;
		this.name = name;
		this.order = order;
	}

	/**
	 * Gets the event type id.
	 * 
	 * @return the event type id
	 */
	public Long getEventTypeId() {
		return this.eventTypeId;
	}

	/**
	 * Sets the event type id.
	 * 
	 * @param eventTypeId
	 *            the new event type id
	 */
	public void setEventTypeId(Long eventTypeId) {
		this.eventTypeId = eventTypeId;
	}

	/**
	 * Gets the name.
	 * 
	 * @return the name
	 */
	public String getName() {
		return this.name;
	}

	/**
	 * Sets the name.
	 * 
	 * @param name
	 *            the new name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * Gets the order.
	 * 
	 * @return the order
	 */
	public int getOrder() {
		return this.order;
	}

	/**
	 * Sets the order.
	 * 
	 * @param order
	 *            the new order
	 */
	public void setOrder(int order) {
		this.order = order;
	}

}
